Telegram Group & Telegram Channel
#вопрос260

Вложенность слов создается следующим образом. Берем начальное слово и генерируем новую строку, помещая это слово внутрь него самого. Этот процесс может повторяться.

Напишите функцию, которая будет принимать начальное слово и итоговую строку и возвращать уровень вложенности.

Примеры:

word_nest("floor", "floor")
➞ 0
word_nest("code", "cocodccococodededeodeede")
➞ 5



tg-me.com/pythonjuniorjob/895
Create:
Last Update:

#вопрос260

Вложенность слов создается следующим образом. Берем начальное слово и генерируем новую строку, помещая это слово внутрь него самого. Этот процесс может повторяться.

Напишите функцию, которая будет принимать начальное слово и итоговую строку и возвращать уровень вложенности.

Примеры:

word_nest("floor", "floor")
➞ 0
word_nest("code", "cocodccococodededeodeede")
➞ 5

BY Python вопросы на собеседовании с ответами


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonjuniorjob/895

View MORE
Open in Telegram


Python вопросы на собеседовании с ответами Telegram | DID YOU KNOW?

Date: |

To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.

What is Secret Chats of Telegram

Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.

Python вопросы на собеседовании с ответами from hk


Telegram Python вопросы на собеседовании с ответами
FROM USA